package com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zhangwei
 * @version 1.0
 * @date 2023/9/30 22:45
 */
//启动naocs作为服务发现的功能
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.sanceng.*"})
@SpringBootApplication()//(scanBasePackages={"com.netflix.client.config.IClientConfig"})
@EnableFeignClients
//@ComponentScan(basePackages = {"com.*"})
public class ProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProviderApplication.class,args);
    }
}
